package com.example.administrator.androidros.fragment;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import com.example.administrator.androidros.R;
import com.example.administrator.androidros.base.BaseFragment;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import butterknife.BindView;
import butterknife.OnClick;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.socket.SocketChannel;

/**
 * Created by Administrator on 2018/1/16.
 */

public class NotificationFragment extends BaseFragment {
    private static final String TAG = "hhc";

    @BindView(R.id.fragment_notification_et_message)
    protected EditText fragment_notification_et_message;

    @BindView(R.id.fragment_notification_bt_send)
    protected Button fragment_notification_bt_send;
    public static String clientId = "13160675089";
    public static String deviceId = "123456";
    @BindView(R.id.fragment_notification_et_appliance)
    protected EditText fragment_notification_et_appliance;

    private ExecutorService mThreadPool;
    private EventLoopGroup workerGroup;
    private Bootstrap bootstrap;

    public static NotificationFragment newInstance() {
        return new NotificationFragment();
    }

    private SocketChannel socketChannel;
    @BindView(R.id.fragment_notification_et_operation)
    protected EditText fragment_notification_et_operation;

    @Override
    protected void initData(View view, Bundle savedInstanceState) {
        // 初始化线程池
        mThreadPool = Executors.newCachedThreadPool();
    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_notification;
    }

    @Override
    protected void onFailure(int requestCode, Object object) {

    }

    @Override
    protected void onSuccess(int requestCode, Object object) {

    }

    @OnClick(R.id.fragment_notification_bt_send)
    protected void onSend() {
    }

    @OnClick(R.id.fragment_notification_bt_stop)
    protected void stopConnect() {
    }

}
